package vn.edu.saigontech.ncms.web.student;

import java.util.Collection;

import vn.edu.saigontech.ncms.model.result.PlacementTest;
import vn.edu.saigontech.ncms.service.PlacementTestService;
import vn.edu.saigontech.ncms.web.BaseAction;

@SuppressWarnings("serial")
public class ReportPlacementTestAction extends BaseAction {

	private int month;
	private int year;
	
	public String showReport() {
		return SUCCESS;
	}
	
	public String doFeeReport() {
		Collection<PlacementTest> placementTests = PlacementTestService.INSTANCE.findByMonth(this.month, this.year);
		REQUEST().setAttribute("placementTests", placementTests);
		return SUCCESS;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}
}
